class PeabulletAni extends GuaAnimation {
    static new(game) {
        let p = new this(game, peabulletShroom)
        p.setup()
        return p
    }


    setup() {
        // row表示在草地的第几排
        // 子弹的伤害
        this.damage = 1
        // 子弹速度
        this.speed = 3
        // 子弹在第几排
        this.row = -1
    }

    constructor(game, name) {
        super(game, name)

    }

    update() {
        this.x += this.speed
    }

    debug() {
        this.speed = config.bullet_speed.value
    }

    remove() {
        this.scene.removeBullet(this)
    }
}